package com.wanwu.channel.dao.inter;

import com.wanwu.channel.dao.condition.BaseCondition;
import com.wanwu.channel.dao.entity.ChannelClearSubEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChannelClearSubDao {
    int deleteByPrimaryKey(Long id);

    int insert(ChannelClearSubEntity record);

    int insertSelective(ChannelClearSubEntity record);

    ChannelClearSubEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ChannelClearSubEntity record);

    int updateByPrimaryKey(ChannelClearSubEntity record);

    ChannelClearSubEntity selectByClearSubNo(String clearSubNo);

    List<ChannelClearSubEntity> selectByChannelNo(String channelNo);

    int insertList(@Param("entityList") List<ChannelClearSubEntity> entityList);

    // 以下是后台的方法
    List<ChannelClearSubEntity> qryList(@Param("entity") ChannelClearSubEntity entity, @Param("cond") BaseCondition cond);

    int countNum(@Param("entity") ChannelClearSubEntity entity, @Param("cond") BaseCondition cond);

    List<ChannelClearSubEntity> selectByChannelNoFMaster(String channelNo);

    List<ChannelClearSubEntity> selectByDetailNos(@Param("clearDetailNoList") List<String> clearDetailNoList, @Param("channelNo") String channelNo);

    int updateChannelNo(@Param("clearDetailNoList") List<String> clearDetailNoList, String channelNo);
}